﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace HRWebSite.Employee
{
    public partial class RelevanceUser : BasePage
    {
        protected override void Page_Load(object sender, EventArgs e)
        {
            this.HRLimits = Limits.EmployeeManage;
            this.HRLimitAttribute = Forget.HRBLL.LimitAttribute.Read;
            base.Page_Load(sender, e);
        }

        protected string GetHtmlControl(string numberid, int? employeeid)
        {
            if (employeeid == null)
                return string.Format("<a href='javascript:void(0)' onclick=\"window.open('CreateEmployee.aspx?NumID={0}','newwindow','height=340,width=603,toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no')\">添加</a>", numberid);
            else return string.Format("<a href='javascript:void(0)' onclick=\"window.open('EditEmployee.aspx?NumID={0}','newwindow','height=340,width=603,toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no')\">编辑</a>", numberid);
        }
    }
}